<template>
	<view>
		<text>是否退出当前账号？</text>
		<button size="min" @click="confirm">确定</button>
		<button size="min">取消</button>
	</view>
</template>

<script>
	import common from '../../libs/login.js';
	export default {
		data() {
			return {

			}
		},
		methods: {
			async confirm() {
				let unbindresult = await this.$http.request('/auth/wechat/unbind', 'POST', {}, {})
				common.removeStorage('user')
				uni.reLaunch({
					url: '/pagesLogin/loginRegister/wxLogin'
				})
			}
		}
	}
</script>

<style>

</style>
